CC	:= gcc
CFLAGS	:= -Wall
LDFLAGS	:= 

OBJS	:= extract_exception_main.o mygetline.o extract_exception.o
TARGET	:= extexc
EXECDIR	:= /bin

all:$(TARGET)
$(TARGET):$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^

# %.o:%.c
#	$(CC) $(CFLAGS) -o $@ -c $<

install:
	cp $(TARGET) $(EXECDIR)

uninstall:
	rm -r $(EXECDIR)/$(TARGET)

clean:
	$(RM) $(TARGET) $(OBJS)

